package mygame;

import com.jme3.app.SimpleApplication;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import com.jme3.renderer.RenderManager;
import com.jme3.scene.Geometry;
import com.jme3.scene.shape.Box;
import com.jme3.scene.Node;

/**
 * This is the Main Class of your Game. You should only do initialization here.
 * Move your Logic into AppStates or Controls
 * @author normenhansen
 */
public class Main extends SimpleApplication {

    public static void main(String[] args) {
        Main app = new Main();
        app.start();
    }

    @Override
    public void simpleInitApp() {
        flyCam.setMoveSpeed(10.0f);
        Node scene = (Node) assetManager.loadModel("Scenes/TestScene2_1.j3o");

        rootNode.attachChild(scene);
        
        viewPort.addProcessor(assetManager.loadFilter("Filters/TrailingFilters.j3f"));
    }

    @Override
    public void simpleUpdate(float tpf) {
        //TODO: add update code
//        System.out.println("tpf:" + tpf * 1000);
    }

    @Override
    public void simpleRender(RenderManager rm) {
        //TODO: add render code
    }
}
